﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SaiLing.HealthMonitoring
{
    public class Log
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Log" /> class.
        /// </summary>
        /// <param name="e">The e.</param>
        public static Action<Exception> Logger = (Exception e) =>
        {
            //var webEvent = new WebRequestErrorEventWrapper(e.Message, null, 100000, e);
            //webEvent.Raise();
        };
        /// <summary>
        /// Logs the exception.
        /// </summary>
        /// <param name="e">The e.</param>
        public static void LogException(Exception e)
        {
            Logger(e);
        }
    }

    public class Debug
    {
        public static Action<string> Logger = (string message) =>
        {
            //var webEvent = new DebugEventWrapper(message, null, 100000);
            //webEvent.Raise();
        };
        public static void DebugLog(string message)
        {
            Logger(message);
        }
    }
}
